using System;
using System.Collections.Generic;
using System.Text;

namespace MyEmulators2
{
    class EmuAutoConf
    {
        private Dictionary<String, String> filterDictionary;

        public EmuAutoConf()
        {
            filterDictionary = new Dictionary<String, String>();

            //Add all auto-configurable entries
            filterDictionary.Add("Snes9XW.exe", "*.smc");
            filterDictionary.Add("zsnesw.exe", "*.smc;*.fig");
            filterDictionary.Add("Project64.exe", "*.n64;*.z64;*.v64;*.rom");
            filterDictionary.Add("fceu.exe", "*.nes");
            filterDictionary.Add("fceux.exe", "*.nes");
            filterDictionary.Add("snes9x.exe", "*.bin;*.fig;*.smc");
            filterDictionary.Add("vba.exe", "*.gba;*.gbc;*.sgb;*.gb");
            filterDictionary.Add("Atari800Win.exe", "*.atr");
            filterDictionary.Add("Fusion.exe", "*.bin;*.smd");
            filterDictionary.Add("nullDC.exe", "*.cdi");
            filterDictionary.Add("ePSXe.exe", "*.bin;*.iso;*.img");
            filterDictionary.Add("winuae.exe", "*.uae");
        }

        public String getFilterString(String filename)
        {
            try
            {
                return filterDictionary[filename];
            }
            catch (Exception)
            {
                return null;
            }
        }
    }
}
